﻿using Dapper_Core.Basic;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Dapper_Core.Table
{
    public class Sys_DictionaryExtend : BaseModel
    {
        [Key]
        /// <summary>
        /// 字典编码，主键必须加[Key]特性，若想对名为Id的列赋值必须加[Required]特性
        /// </summary>
        public string DictCode { get; set; }

        /// <summary>
        /// 字典名称
        /// </summary>
        public string DictName { get; set; }

        /// <summary>
        /// 字典值
        /// </summary>
        public string DictValue { get; set; }

        /// <summary>
        /// 字典类型
        /// </summary>
        public string DictType { get; set; }

        /// <summary>
        /// 排序编号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 父节点Code
        /// </summary>
        public string ParentCode { get; set; }

        /// <summary>
        /// 构建树形结构所用的父节点
        /// </summary>
        public string VirtualParentCode { get; set; }

        /// <summary>
        /// 是否有效（0无效、1有效）
        /// </summary>
        public int? IsActive { get; set; }
    }
}
